<template>
  <view class="app-wrapper">
    <homeHeader/>
    <homeMid v-show="isLogin"/>
  </view>

</template>

<script setup>
import homeHeader from './components/home-header.vue';
import homeMid from './components/home-mid.vue';
import useUserStore from '@/store/modules/user';
const userStore = useUserStore();
const isLogin = userStore.isLogin();
const str = '子组件的值';
// 向父组件暴露出子组件内部的值
defineExpose({
  str
})
console.log(isLogin);
</script>

<style scoped lang="scss">
.app-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 20px 15px 0 15px;
  box-sizing: border-box;
}

</style>